$(document).ready(function(){
	var validator = $("#frmforgotpass").validate({
		errorElement:'div',
		rules: {
			username: {
				required: true,
				email: true
			}
			
		},
		messages: {
			username: {
				required: "Please enter email adderss",
				email: "Please enter proper email adderss"
			}
		}
	});
	
});

$(document).ready(function(){
	var validator = $("#frmresetpass").validate({
		errorElement:'div',
		rules: {
			pass: {
				required: true,
				maxlength: 16,
				minlength:6		
			},
			confpass: {
				required: true,
				maxlength: 16,
				minlength:6,
				equalTo: "#pass"
			}

			
		},
		messages: {
			pass: {
				required: "Please enter new password",			
				maxlength: jQuery.format("Enter at most {0} characters"),
				minlength: jQuery.format("Enter at most {0} characters")		

			},
			confpass: {
				required: "Please retype password",
				maxlength: jQuery.format("Enter at most {0} characters"),
				minlength: jQuery.format("Enter at most {0} characters"),
				equalTo: "Retype password should be same as new password"			
			}

		}
	});
	
});